{% extends "fmbase.html" %}

{% load i18n %}

{% block sidebar %}
    <div class="block actions">
    <h2>{% trans "Dostępne akcje" %}</h2>
        <div class="contentFM">       
		<table class="tabela">
		<tr>
		<td>
			<p><a href="{% url ls_path back %}"><img src="{{ fileman_media_url }}/bullet_go.png"> {% trans "Cofnij" %}</a></p>
		</td>
		<td>
			<p><a href="{% url fileman.views.ls %}"><img src="{{ fileman_media_url }}/house.png"> {% trans "Home directory" %}</a></p>        
		</td>
		<td>
        <p><a href="{% url fileman.views.download pwd %}"><img src="{{ fileman_media_url }}/download.gif"> {% trans "Download" %}</a></p>        
		</td>
		<td>
        {% if perms.fileman.can_fm_destruct %}<p><a href="{% url fileman.views.destraction pwd %}"><img src="{{ fileman_media_url }}/cross.png"> {% trans "Destroy" %}</a></p>{% endif %}
		</td>
		</tr>
		</table>
        </div>
    </div>
{% endblock %}

{% block main %}
    {% if perms.fileman.can_fm_list %}
    <div id="pwd"><b>{% trans "File:" %}</b> {{ pwd }}</div>
    <div id="contentFM">
        <img src="{% url fileman.views.image pwd %}">
    </div>
    {% endif %}
{% endblock %}
